<?php
namespace App\Repositories\Contracts;


interface MemberRepository {

    /**
     * @title 登录注册
     * @param string $account
     * @param int $type
     * @param array $info
     * @param string $ip
     * @return mixed
     * Created by PhpStorm
     * User: shanshui
     * Date: 2020/5/9
     * Time: 15:49
     */
    public function login(string $account='',int $type = 0,array $info = [],string $ip);

    /**
     * @title 验证登录
     * @param string $token
     * @return mixed
     * Created by PhpStorm
     * User: shanshui
     * Date: 2020/5/9
     * Time: 14:40
     */
    public function checkLogin(string $token = '');

    /**
     * @title 退出登录
     * @param int $memberId
     * @return mixed
     * Created by PhpStorm
     * User: shanshui
     * Date: 2020/5/9
     * Time: 17:24
     */
    public function logout(int $memberId = 0);


}